package tk.heimashuma.store.service;


import tk.heimashuma.store.entity.Car;
import tk.heimashuma.store.entity.Commodity;
import tk.heimashuma.store.entity.Users;
import tk.heimashuma.store.entity.dto.CarNum;

import java.util.List;

public interface CarService {
    Car saveToCar(Commodity commodity, Users user, Integer num);

    List<Car> findAllCarByUser(Users user);


    CarNum findAllCarAndCheckNumsByIds(Integer [] ids, Integer [] nums);

    String createOrder(CarNum carNum, Users user);


    Long statisticsCarByUsers(Users user);

    Boolean delCar(Integer cid);
}
